<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@include file="public.jsp"%>
<input type="hidden" id="mark" value="${mark }">
<input type="hidden" id="shouqing" value="${shouqing }">
<input type="hidden" id="userName" value="${userName }">
<c:forEach items="${flights}" var="item" varStatus="status">
<ul class="flight_sel_result_ul even navBlock">
<a href="javascript:enterA(this);" onclick="enterA(this);" class="question" style="float: left;" title="航班号:${item.hbh}起飞时间:${item.qf_time}到达时间:${item.dd_time},继续按tab键选择该航班舱位" ><img src="${contextPath}/csair/img/question.png"></a>
	<li class="flight_sel_result_dest">
		<div class="flight_sel_result_dest_start">
			<div class="flight_sel_result_dest_time">${item.qf_time}分</div>
			<div class="flight_sel_result_dest_city">${item.qf_city}</div>
		</div>
		<div class="flight_sel_result_dest_plane_info">
			<div class="flight_num">${item.hbh}</div>
		</div>
		<div class="flight_sel_result_dest_end">
			<c:choose>
				<c:when test="${fn:contains(item.dd_time, '+')}">
					<c:set var="ddTime" value="${fn:split(item.dd_time, '+')}" />
					<div class="flight_sel_result_dest_time">${ddTime[0]}分   +1</div>
				</c:when>
				<c:otherwise>
					<div class="flight_sel_result_dest_time">${item.dd_time}分</div>
				</c:otherwise>
			</c:choose>
			<div class="flight_sel_result_dest_city">${item.dd_city}</div>
		</div>
	</li>
	<c:choose>
		<c:when test="${mark=='1'}">
		<a href="javascript:void(0);" data="${item.xq_href }" class="xq" onclick="xqClick1(this)"   style="float: left; margin-top:30px;" title="详情" ><img src="${contextPath}/csair/img/question.png">详情</a>
		</c:when>
		<c:otherwise>
		<a href="javascript:void(0);" data="${item.xq_href }" class="xq" onclick="xqClick2(this)"   style="float: left; margin-top:30px;" title="详情" ><img src="${contextPath}/csair/img/question.png">详情</a>
		</c:otherwise>
	</c:choose>
	<c:if test="${item.shouqing == '0' }">
	<li class="flight_sel_result_button">
	<c:choose>
		<c:when test="${userName==null && mark=='2'}">
			<a class="pop" title="${item.price}" href="${item.yd_href}" id="${item.yd_id }" onclick="pop(this)" >明珠会员登录购票</a><a class="orangebtn nologinbuy"  href="${item.yd_href}" onclick="nologin(this);"  title="点击此处可无需登录购票">无需登录购票&nbsp;</a>
		</c:when>
		<c:when test="${userName==null && mark=='1'}">
			<a class="pop" title="${item.price}" href="${item.yd_href}" id="${item.yd_id }" onclick="popId(this)">预定</a>
		</c:when>
		<c:when test="${userName!=null && mark=='2'}">
			<a class="pop" title="${item.price}" href="${item.yd_href}" id="${item.yd_id }" onclick="pop(this)">明珠会员登录购票</a>
		</c:when>
		
	</c:choose>
	</li>
	<li class="flight_sel_result_button">
		<span class="internationalPrice"  title="${item.price}" >${item.price}</span> 
	</li>
	<li class="flight_sel_result_price">
		<span class="internationalCw" title="经济舱">${item.cw}</span> 
	</li>
	</c:if>
	<c:if test="${item.shouqing == '1' }">
	<li class="flight_sel_result_button">
		<a href="javascript:void(0);" title="本次航班售罄" >
			<span class="internationalPrice"  style="margin-right: 200px; font-size: 28px;font-weight: bold;"  >售罄</span> 
		</a>
	</li>
	</c:if>
	<div class="clearboth"></div>
</ul>
</c:forEach>